<template>
  <div>
    <h1>{{ title }}</h1>
    <!-- slot插槽标签 vue要求每一个插槽都要有name名称 没写默认 name是default -->
    <div>
      <slot name="footer"  :msg="msg"  :man="man" :count="1" sex="男" >我是底部</slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "Tab",
  props: ["title"],
  data() {
    return {
      msg:["小A","小B","小C"],
      man:{name:"lk",age:18,sex:"男"}
    };
  },
};
</script>

<style>
</style>